package routers

import (
	"github.com/gogf/gf/v2/net/ghttp"
	"seawolf-admin-go/internal/app/admin/controller/cms"
)

func CmsReg(s *ghttp.Server, defaultVersion string) {
	s.Group("/cms/article", func(group *ghttp.RouterGroup) {
		cms.NewArticleController(group, defaultVersion)
	})
	s.Group("/cms/articleCategory", func(group *ghttp.RouterGroup) {
		cms.NewArticleCategoryController(group, defaultVersion)
	})

	s.Group("/cms/slides", func(group *ghttp.RouterGroup) {
		cms.NewSlidesController(group, defaultVersion)
	})

	s.Group("/cms/slidesCategory", func(group *ghttp.RouterGroup) {
		cms.NewSlidesCategoryController(group, defaultVersion)
	})

	s.Group("/cms/links", func(group *ghttp.RouterGroup) {
		cms.NewLinksController(group, defaultVersion)
	})

	s.Group("/cms/linksCategory", func(group *ghttp.RouterGroup) {
		cms.NewLinksategoryController(group, defaultVersion)
	})
}
